#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: Package.cs
 * Purpose: ViewModel class for Package
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  07/12/2013
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace Jb.Web.ViewModels
{
    [Serializable]
	public class PackageViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a Name")]
        [StringLength(250, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Name")] 
		public String Name	{ get; set; }

        [Required(ErrorMessage = "Please Enter a Price")]
        [DataType(DataType.Currency)]
        [Display(Name = "Price")]
        public decimal Price { get; set; }

        [Required(ErrorMessage= "Please Select a Currency")]
        [Range(1, int.MaxValue, ErrorMessage = "Please Select a Currency")]
        [Display(Name = "Currency")] 
        public int CurrencyID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a Max Job Post")]
        [Display(Name = "Max Job Post")] 
		public int MaxJobPost	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Max Resume Download")]
        [Display(Name = "Max Resume Download")] 
		public int MaxResumeDownload	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Duration")]        
        [Display(Name = "Duration")] 
		public int Duration	{ get; set; }
            
        [Required(ErrorMessage= "Please Choose Is Active?")]         
        [Display(Name = "Is Active")] 
		public String IsActive	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Created")]
        //[Display(Name = "Created")] 
		public String Created	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Modified")]
        //[Display(Name = "Modified")] 
		public String Modified	{ get; set; }
	}
}

